home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / PRGMMING / PBC30.ZIP / RANDFILE.BAS < prev    next >
Encoding:
BASIC Source File  |  1994-11-12  |  644 b   |  14 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        PBClone  Copyright (c) 1990-1994  Thomas G. Hanlin III        |
  4. '   |                                                                      |
  5. '   +----------------------------------------------------------------------+
  6.  
  7.  
  8. DECLARE SUB GetTime (HourNr%, MinuteNr%, SecondNr%, HundredthSecNr%)
  9.  
  10. FUNCTION RandFile$
  11.    GetTime HourNr%, MinNr%, SecNr%, HundSecNr%
  12.    RandFile$ = "$" + CHR$(HourNr% + 65) + HEX$(MinNr% * 256 + SecNr%) + HEX$(HundSecNr%) + "."
  13. END FUNCTION
  14.